<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix='fn' uri='http://java.sun.com/jsp/jstl/functions'%>

<div>
	<form:form action="farm?action=save" commandName="farm" id="farmForm">
		<form:hidden path="id" />
		<input type="hidden" id="qFarmPage" name="farm" value="${farm}" />
		<div class="splitcontentleft">
			<div class="box tabular">
				<h4>Farm Information</h4>
				<p>
					<label>Name </label>
					<form:input path="name" />
				</p>
				<p>
					<label>Manager </label>
					<form:select path="manager" itemLabel="firstName" items="${manager }"/>
				</p>
			</div>
		</div>
		<div class="splitcontentright">
			<div class="box tabular">
				<h4>Farm Address</h4>
				<p>
					<label>Physical Address </label>
					<form:input path="address.physicalAddress" ></form:input>
				</p>
				<p>
					<label>Post Office Code </label>
					<form:input path="address.postOfficeCode" ></form:input>
				</p>
				<p>
					<label>Email </label>
					<form:input path="address.email" ></form:input>
				</p>
				<p>
					<label>Phone No </label>
					<form:input path="address.phoneNo" ></form:input>
				</p>
				</div>
		</div>
		<div style="clear: both"></div>
		<div>
			<input id="btnSaveFarm" type="submit" value="Save" class="uiButton" /> 
		</div>
	</form:form>
</div>